package com.weiyuwqj.api.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @className:SysAssetProduct	
 * @Description: 资产方产品
 * @author cx
 * @date:2017年3月24日下午6:29:18
 *
 */
@Table(name = "sys_asset_product")
public class SysAssetProduct implements Serializable {
   
	private static final long serialVersionUID = 6438335939206621399L;
	
	@Id
    private Integer id;
	
	/**
	 * 资产方id
	 */
	@Column(name = "company_id")
	private Integer companyId;
	
	/**
	 * 产品名称
	 */
	@Column(name = "name")
	private String name;
	
	/**
	 * 金额
	 */
	@Column(name = "amount")
	private double amount;
	
	/**
	 * 利率
	 */
	@Column(name = "apr")
	private String apr;
	
	/**
	 * 期限
	 */
	@Column(name = "time_limit")
	private Integer timeLimit;
	
	/**
	 * 周期单位 1-天、2-月、3-季、4-年
	 */
	@Column(name = "cycle_unit")
	private Integer cycleUnit;
	
	/**
	 * 还款方式：1-一次性还款 2-等额本息 3-先息后本
	 */
	@Column(name = "repay_style")
	private Integer repayStyle;
	
	/**
	 * 预计利息时间yyyy-MM-dd
	 */
	@Column(name = "interest_time")
	private String interestTime;
	
	/**
	 * 产品描述
	 */
	@Column(name = "description")
	private String description;
	
	/**
	 * 包id
	 */
	@Column(name = "package_id")
	private Integer packageId = 0;
	
	/**
	 * 标id
	 */
	@Column(name = "item_id")
	private Integer itemId = 0;
	
	/**
	 * 创建者
	 */
	@Column(name = "creator")
	private Integer creator;
	
	/**
	 * 创建ip
	 */
	@Column(name = "addip")
	private String addip;
	
	/**
	 * 创建时间
	 */
	@Column(name = "addtime")
	private Date addtime;

	/**
	 * 资产方借款人id
	 */
	@Column(name = "asset_borrower_id")
	private Integer assetBorrowerId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getApr() {
		return apr;
	}

	public void setApr(String apr) {
		this.apr = apr;
	}

	public Integer getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(Integer timeLimit) {
		this.timeLimit = timeLimit;
	}

	public Integer getCycleUnit() {
		return cycleUnit;
	}

	public void setCycleUnit(Integer cycleUnit) {
		this.cycleUnit = cycleUnit;
	}

	public Integer getRepayStyle() {
		return repayStyle;
	}

	public void setRepayStyle(Integer repayStyle) {
		this.repayStyle = repayStyle;
	}

	public String getInterestTime() {
		return interestTime;
	}

	public void setInterestTime(String interestTime) {
		this.interestTime = interestTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getPackageId() {
		return packageId;
	}

	public void setPackageId(Integer packageId) {
		this.packageId = packageId;
	}

	public Integer getItemId() {
		return itemId;
	}

	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}

	public Integer getCreator() {
		return creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getAddip() {
		return addip;
	}

	public void setAddip(String addip) {
		this.addip = addip;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Integer getAssetBorrowerId() {
		return assetBorrowerId;
	}

	public void setAssetBorrowerId(Integer assetBorrowerId) {
		this.assetBorrowerId = assetBorrowerId;
	}
}